Visual Basic program "VB Planet3d" - Software Description
Contents
Introduction
The purpose of this document is to give some general information about the software of this program.
There are generally speaking two modes of operation: AUTOMATIC and MANUAL.
- The Manual mode is used to do perform individual simulations. The data is not saved on disc.
- The Automatic Mode is used to perform long range
- The program uses a data base which is stored in the directory C:\Now-new.
The name of this directory can be changed changed. See Parameter Menu.
In this directory there are two files (progname$) : PLANET3X and PLANET3Y.
-
PLANET3X is the standard file name.
PLANET3Y is non standard, but you can also use your own.
Files
In the directory C://Now-New there are also the files Meeus1.DB etc.
- The files PLANET3X come with 4 extensions: .DB .OU and .TX and .CM
They are stored in namecm$, nameou$, namepr$, and namedb$ in subroutine INIT0 and DISPLAY1
filenm1$ stores the extension .TX (Created in GETFLNM)
- namecm$ and filenmcm$ are used in the subroutines READCOM and WRITECOM
- namedb$ and filenmdb$ are used in the subroutines READDB and WRITEDB
This is a Binary File
- nameou$ and filenmou$ are used in the subroutines READDATA and WRITEDATA.
This Random file has a variable length.
These files are also used in the subroutine PRINTDATA (To print and to display)
- namepr$ and filenmpr$ are used in the subroutine PRINTFILE
READCOM and WRITECOM are used in the subroutines: DISPLAY1, FIGURES1
READDB is used in sub: MAIN and WRITEDB is used in the sub: WRITEDATA
READDATA is used in sub: DISPLAY1 and WRITEDATA is used in the subroutine: Main
PRINTFILE is used in sub: Main
Two important parameters used in file IO are savedb and restoredb
Both parameters are used to control the subroutines
- savedb is used to make a distintion between AUTOMATIC and MANUAL mode.
In AUTOMATIC mode savedb is set to one. In that case the program uses predefined comands
and MANUAL mode savedb is set to one. In that case the program uses the user selected simulation examples
- restoredb is used after the first WRITEDB command.
General use of variables
- Two important parameters used are test and subtest
The parameter test is used to indicate the tests of the control form
The parameter subtest is used to indicate the tests of the Figure Form
- To perform subtest 4 proceed as follow:
- From the Menu Display
Select parameter 12 Sub Test and enter parameter 4.
- From the Control Form Select View Commands
- From the Control Form Select Command excution
Subroutine usesage of Forms.
- The "Control Form" is primarily used by the subroutines DISPLAY, DISPLAY1 andInit0
The subroutine DISPLAY is called by the Subroutine Main
CommandTest uses DISPLAY and DISPLAY1
- The "Display Form" is primarily used by the subroutines DISPLAY1 and Main
The subroutine DISPLAY is called by the Subroutine Main
- The "Figure Form is primarily used by the subroutines Figures and Figures1
The subroutine FIGURES is called by the Subroutine DISPLAY1
- The Menu Form is primarily used by the subroutines Menu and Menu1
The subroutine Menu is called by the Subroutine DISPLAY.
subtest | Test | star2 |
1 | 2 | 2 |
2 | 2 | 3 |
3 | 2 | 4 |
4 | 2 | 5 |
5 | 2 | 6 |
6 | 2 | 7 |
7 | 1 | 1 |
8 | 3 | |
9 | 4 | |
10 | 5 | |
11 | 6 | |
12 | 7 | |
Select Case subtest% ' sub test
Case 1 ' Test 2 influence of S, M and Venus
testdb(i) = 2: phidb(i) = 0: rrdb(i) = 0: enddb(i) = 1000: TDB(i) = 50
cdb(i) = 0: disdb(i) = -1: savdb(i) = 1: ecdb(i) = ec0: specdb(i) = 0
star2 = 2
Reflection 1
Reflection 2
Feedback
None
Created: 9 April 2020
Go to: Visual Basic program "VB Planet3d" - Description and operation
Back to my home page: Contents of This Document